import React, { useEffect } from "react";
import { setupErrorHandler } from "@/utils/errorHandler";

interface ErrorBoundaryProps {
  children: React.ReactNode;
}

export function ErrorBoundary({ children }: ErrorBoundaryProps) {
  useEffect(() => {
    setupErrorHandler();
  }, []);

  return <>{children}</>;
}
